package game.screen;

import game.Constants;
import game.Person;
import game.manager.PersonManager;
import game.manager.ScreenManager;
import game.screen.option.BackOption;
import game.screen.option.ForwardOption;
import game.screen.option.ScreenOption;

import java.util.Collection;
import java.util.List;
import java.util.Vector;

public class PeopleViewerScreen extends Screen {

	@Override
	protected List<ScreenOption> getOptions() {
		final Vector<ScreenOption> options = new Vector<ScreenOption>();
		final Collection<Person> people = PersonManager.getManager()
				.getPeople();
		for (Person person : people) {
			final ProfileScreen profile = person.getProfile();
			options.add(new ScreenOption(profile.getOptionTitle()) {

				@Override
				public void select() {
					ScreenManager.getManager().activateScreen(profile);
				}
			});
		}
		options.add(new BackOption());
		options.add(new ForwardOption());
		return options;
	}

	@Override
	public String getTitle() {
		return Constants.VIEW_PEOPLE;
	}

	@Override
	public void draw() {
	}
}
